//package com.cloud.lan.config.filter;
//
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Component;
//
//import java.io.IOException;
//
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.FilterConfig;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.http.HttpServletRequest;
//
//import lombok.Data;
//import lombok.extern.slf4j.Slf4j;
//
///**
// * @description: 包装request过滤器 解决request只能读取一次
// * @author: qing.wang.o
// * @create: 2019-12-31 11:21
// **/
//@Slf4j
//@Data
//@Order
//@Component
//public class RequestWrapperFilter implements Filter {
//
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//        log.info("RequestWrapperFilter init start");
//    }
//
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException {
//        BodyReaderHttpServletRequestWrapper requestWrapper = new BodyReaderHttpServletRequestWrapper(
//                (HttpServletRequest) request);
//        filterChain.doFilter(requestWrapper, response);
//    }
//
//    @Override
//    public void destroy() {
//        log.info("RequestWrapperFilter destroy");
//    }
//
//
//}
